cmake_minimum_required(VERSION 3.21)

project(imgui)

add_library(${PROJECT_NAME} OBJECT)


target_sources(
    ${PROJECT_NAME}
    PRIVATE imgui.cpp imgui_draw.cpp imgui_tables.cpp imgui_widgets.cpp backends/imgui_impl_glfw.cpp backends/imgui_impl_opengl3.cpp
    PUBLIC imgui.h imgui_internal.h imstb_rectpack.h imstb_textedit.h imstb_truetype.h backends/imgui_impl_glfw.h backends/imgui_impl_opengl3.h
)

target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/backends")

target_link_libraries(${PROJECT_NAME} PRIVATE glad glfw)